package org.rain.common.util.json;

/**
 * created by yangtong on 2025/4/14 23:02:14
 * <br/>
 * 抽象的状态
 */
public abstract class AbsJsonState implements JsonState {
    @Override
    public void handle(JsonFsm fsm, char c) {
        //跳过所有空白字符
        if (Character.isWhitespace(c)) {
            return;
        }
        handleNonWhitespace(fsm, c);
    }

    protected abstract void handleNonWhitespace(JsonFsm fsm, char c);
}
